import http from "@/utils/http";

/**
 * 获取一级分类列表
 * @returns 
 */
export const getCategoryTop = ()=>{
    return http({
      url: "/category/top"
    });
}

/**
 * 获取二级分类列表
 * @returns 
 */
 export const getCategory = ()=>{
    return http({
      url: "/category"
    });
}